<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta http-equiv="cache-control" content="no-cache">
<title>reflex::Bits::Bitref Struct Reference</title>
<link href="doxygen_tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="doxygen_content.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="top">
 <div id="titlearea">
  <table height="72px" width="100%" cellspacing="0" cellpadding="0">
   <tbody>
    <tr>
     <td width="10%">&nbsp;</td>
     <td><a href="https://github.com/Genivia/RE-flex"><img src="reflex-logo.png"/></a></td>
     <td>
      <div style="float: right; font-size: 18px; font-weight: bold;">reflex::Bits::Bitref Struct Reference</div>
      <br>
      <div style="float: right; font-size: 10px;">updated Thu May 14 2020 by Robert van Engelen</div>
     </td>
     <td width="10%">&nbsp;</td>
    </tr>
   </tbody>
  </table>
 </div>
<!-- Generated by Doxygen 1.8.11 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacereflex.html">reflex</a></li><li class="navelem"><a class="el" href="classreflex_1_1_bits.html">Bits</a></li><li class="navelem"><a class="el" href="structreflex_1_1_bits_1_1_bitref.html">Bitref</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="structreflex_1_1_bits_1_1_bitref-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">reflex::Bits::Bitref Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>References a single bit, returned by operator[].  
 <a href="structreflex_1_1_bits_1_1_bitref.html#details">More...</a></p>

<p><code>#include &lt;bits.h&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad3e842bbcad0d752fbe6ec3a0e17c3b5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structreflex_1_1_bits_1_1_bitref.html#ad3e842bbcad0d752fbe6ec3a0e17c3b5">Bitref</a> (size_t n, uint64_t *<a class="el" href="structreflex_1_1_bits_1_1_bitref.html#ad2b42d32542d75a0ed7e65c3930946c4">p</a>)</td></tr>
<tr class="separator:ad3e842bbcad0d752fbe6ec3a0e17c3b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc077366b8dc314571d93f26809f139d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structreflex_1_1_bits_1_1_bitref.html#acc077366b8dc314571d93f26809f139d">operator bool</a> () const </td></tr>
<tr class="memdesc:acc077366b8dc314571d93f26809f139d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns bit value.  <a href="#acc077366b8dc314571d93f26809f139d">More...</a><br /></td></tr>
<tr class="separator:acc077366b8dc314571d93f26809f139d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a024e604bd885e963c217c10f0f3d429a"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structreflex_1_1_bits_1_1_bitref.html">Bitref</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structreflex_1_1_bits_1_1_bitref.html#a024e604bd885e963c217c10f0f3d429a">operator=</a> (bool b) const </td></tr>
<tr class="memdesc:a024e604bd885e963c217c10f0f3d429a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assign bit value.  <a href="#a024e604bd885e963c217c10f0f3d429a">More...</a><br /></td></tr>
<tr class="separator:a024e604bd885e963c217c10f0f3d429a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e35a866dc110d49b6b770ebab46ea6d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structreflex_1_1_bits_1_1_bitref.html#a0e35a866dc110d49b6b770ebab46ea6d">operator|=</a> (bool b) const </td></tr>
<tr class="memdesc:a0e35a866dc110d49b6b770ebab46ea6d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Bit-or bit value.  <a href="#a0e35a866dc110d49b6b770ebab46ea6d">More...</a><br /></td></tr>
<tr class="separator:a0e35a866dc110d49b6b770ebab46ea6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19a3c6496645b0e75db479a776e7a179"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structreflex_1_1_bits_1_1_bitref.html#a19a3c6496645b0e75db479a776e7a179">operator&amp;=</a> (bool b) const </td></tr>
<tr class="memdesc:a19a3c6496645b0e75db479a776e7a179"><td class="mdescLeft">&#160;</td><td class="mdescRight">Bit-and bit value.  <a href="#a19a3c6496645b0e75db479a776e7a179">More...</a><br /></td></tr>
<tr class="separator:a19a3c6496645b0e75db479a776e7a179"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b4df3c83974c109cb43568aa3418710"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structreflex_1_1_bits_1_1_bitref.html#a1b4df3c83974c109cb43568aa3418710">operator^=</a> (bool b) const </td></tr>
<tr class="memdesc:a1b4df3c83974c109cb43568aa3418710"><td class="mdescLeft">&#160;</td><td class="mdescRight">Bit-xor bit value.  <a href="#a1b4df3c83974c109cb43568aa3418710">More...</a><br /></td></tr>
<tr class="separator:a1b4df3c83974c109cb43568aa3418710"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:ac71d845a8c382eeeeaf198eae40ca836"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structreflex_1_1_bits_1_1_bitref.html#ac71d845a8c382eeeeaf198eae40ca836">m</a></td></tr>
<tr class="memdesc:ac71d845a8c382eeeeaf198eae40ca836"><td class="mdescLeft">&#160;</td><td class="mdescRight">mask m = 2^n  <a href="#ac71d845a8c382eeeeaf198eae40ca836">More...</a><br /></td></tr>
<tr class="separator:ac71d845a8c382eeeeaf198eae40ca836"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2b42d32542d75a0ed7e65c3930946c4"><td class="memItemLeft" align="right" valign="top">uint64_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structreflex_1_1_bits_1_1_bitref.html#ad2b42d32542d75a0ed7e65c3930946c4">p</a></td></tr>
<tr class="separator:ad2b42d32542d75a0ed7e65c3930946c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>References a single bit, returned by operator[]. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ad3e842bbcad0d752fbe6ec3a0e17c3b5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">reflex::Bits::Bitref::Bitref </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t *&#160;</td>
          <td class="paramname"><em>p</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">n</td><td>n'th bit </td></tr>
    <tr><td class="paramname">p</td><td>in this word </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="acc077366b8dc314571d93f26809f139d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">reflex::Bits::Bitref::operator bool </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns bit value. </p>
<dl class="section return"><dt>Returns</dt><dd>bit value true or false. </dd></dl>

</div>
</div>
<a class="anchor" id="a19a3c6496645b0e75db479a776e7a179"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool reflex::Bits::Bitref::operator&amp;= </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Bit-and bit value. </p>
<dl class="section return"><dt>Returns</dt><dd>result value true or false. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">b</td><td>bit-and with this bit </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a024e604bd885e963c217c10f0f3d429a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="structreflex_1_1_bits_1_1_bitref.html">Bitref</a>&amp; reflex::Bits::Bitref::operator= </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Assign bit value. </p>
<dl class="section return"><dt>Returns</dt><dd>result value true or false. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">b</td><td>bit to assign </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a1b4df3c83974c109cb43568aa3418710"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool reflex::Bits::Bitref::operator^= </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Bit-xor bit value. </p>
<dl class="section return"><dt>Returns</dt><dd>result value true or false. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">b</td><td>bit-xor with this bit </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a0e35a866dc110d49b6b770ebab46ea6d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool reflex::Bits::Bitref::operator|= </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Bit-or bit value. </p>
<dl class="section return"><dt>Returns</dt><dd>result value true or false. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">b</td><td>bit-or with this bit </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="ac71d845a8c382eeeeaf198eae40ca836"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t reflex::Bits::Bitref::m</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>mask m = 2^n </p>

</div>
</div>
<a class="anchor" id="ad2b42d32542d75a0ed7e65c3930946c4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t* reflex::Bits::Bitref::p</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>in this word </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="bits_8h.html">bits.h</a></li>
</ul>
</div><!-- contents -->
<hr class="footer">
<address class="footer"><small>
Converted on Thu May 14 2020 13:20:13 by <a target="_blank" href="http://www.doxygen.org/index.html">Doxygen</a> 1.8.11</small></address>
<br>
<div style="height: 246px; background: #DBDBDB;">
</body>
</html>
